/*
 * @Author: 彭林
 * @Date: 2021-05-14 17:07:58
 * @LastEditTime: 2021-07-01 15:46:11
 * @LastEditors: 彭林
 * @Description:
 * @FilePath: /src/saas-app/app/api/v1/upload.go
 */
package v1

import (
	"saas-app/app/service"
	"saas-app/library/response"

	"github.com/gogf/gf/net/ghttp"
)

func UploadImageFile(r *ghttp.Request) {
	file := r.GetUploadFile("file")
	name := service.UploadService().OSSUpLoad(file)
	response.JsonExit(r, 0, "ok", name)
}
